package com.example.smarthomebluetoothclient;

import android.app.Activity;
import android.os.Bundle;

import com.yadong.smarthome2.protocol2.RequestProtocol.Request;


public class MainActivity extends Activity implements OnNewRequestReceiveListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        BluetoothChatService bluetoothChatService = new BluetoothChatService(this, this);
        bluetoothChatService.start();
    }

    @Override
    public void onReceiveRequest(Request request) {
        System.out.println("on new request:" + request);
    }

}
